#include "instrumentpanel.h"
#include "instrumentpanelplugin.h"

#include <QtPlugin>

InstrumentPanelPlugin::InstrumentPanelPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void InstrumentPanelPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool InstrumentPanelPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *InstrumentPanelPlugin::createWidget(QWidget *parent)
{
    return new InstrumentPanel(parent);
}

QString InstrumentPanelPlugin::name() const
{
    return QLatin1String("InstrumentPanel");
}

QString InstrumentPanelPlugin::group() const
{
    return QLatin1String("");
}

QIcon InstrumentPanelPlugin::icon() const
{
    return QIcon();
}

QString InstrumentPanelPlugin::toolTip() const
{
    return QLatin1String("");
}

QString InstrumentPanelPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool InstrumentPanelPlugin::isContainer() const
{
    return false;
}

QString InstrumentPanelPlugin::domXml() const
{
    return QLatin1String("<widget class=\"InstrumentPanel\" name=\"instrumentPanel\">\n</widget>\n");
}

QString InstrumentPanelPlugin::includeFile() const
{
    return QLatin1String("instrumentpanel.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(instrumentpanelplugin, InstrumentPanelPlugin)
#endif // QT_VERSION < 0x050000
